package com.xushi.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayConfig {
    // 商户appid
    @Value("${alipay.APP_ID}")
    public String APP_ID;
    // 私钥 pkcs8格式的
    public String RSA_PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCYLwslGeBjT7cg+kgJw" +
            "iEYAYh5ef35cNgWRaUTA2OhMZEdw09TzoHRsmZ43CegGIUdmV5zRqHDZfED7R6Hk97yP7IapF+jdjJ/XK1n0IEJVkVieYO8KWi" +
            "V2cZAX2WMvY1n+eaUlspStJmLwMjhz8lMTpq5QHkIldDBmZt53ANP/uaLXEhuuuZSKOJ+MDCuAHQNwdUyXPQnl+4XHEoyr" +
            "VMCJUfWsjBIZhu/12hiyZfp3UIS747DBMpPaz19KL3VsazMLwPgago4LUZWLzbqdCA5QyQG7txn/TyzJ48cBcUj3EMEU1+M8Yz" +
            "MtWThWFnSC5JeQFYgWrY2UYOAVXIzIdTlAgMBAAECggEASUDLwo4UHnmukqcmqdvSBjYmtSJth/YzbXUUonRNLrgnPAZZVuPeRUv" +
            "0W1TNlhh3aun6Ns7W6rFVNCidO3GILV9PoddhWdN5NykrJv+MPSxTtbT8HkRoXUk4TqAcx4QuXtBBl2CF/w2Do2umxls4cAyeGXH" +
            "ZULKci7QezKeEyKoPeTg/ktZAgBGUhOM+DiCe6EjVlKnLLSsen4rHCPH247I1QPLoFO3hf18OMPUJgcswtC273cPi6S8HovFj" +
            "JE8whoVA8IDE0GVuh1OywFy3zRy/lfC7SLpxByKCq4eDaJpK9W1spj/JlnzHJ0BlMlU5+gpbDZdUoWb6SrGb+GFAAQKBgQDnDul" +
            "QUbSLyz4oCIuBOo0FopJpHqrohdtGqKABm/YgWdA6qKe/WLPReebqHP8zxCiubGZxCvC5U5r6fMAC6ZK5plmpaHhzfmEddwAAJmGC" +
            "5UcAbBL7uGq7vKJCcikpj7k4C8cLw6FuTo2Yl/j/vBCGAWmoBM/txFSriSTsHkgM5QKBgQConIGR6zct/RKVyqSlLq2C1DrI0h0y7" +
            "wXnJXAbLb8SJq0LViDUn7rv+VxMWSSxUMI0xgTOfKlQe+c8tFiD8/DySjk01R/A0VArTNm6fYIAZiRibTuopahmfq4ew5XR5oIGo8I" +
            "U0MqkiU180q8nCSfCmh8TD25k+vEcktavEB4oAQKBgQCBw4gYyapCEGTaCuJ+MyncDk93pfeKGxLo/e7OuI5j4MznBK0g82oZrQKYXKy" +
            "en/3Q56QovGIxUtjo8ILNn+v9Q4V7dOagxks4RwrDCsscvjM/83I92HZo9SmTc5XWd5cn+MVSwA27a3ZuSntW9IG7ILP73qf/+pEqvRz" +
            "1VpRUWQKBgCAoMSH2PUDdGjVNP5dtTpQ8C7YPNJhpM7QA1N+qGt3IWIpn87z5dbqc0TiSa8gRgeh0t6f16Ii8CL7wGk2YMaTT+RMV" +
            "bofko6iOcJv7odaXpGrNMGqapYJeuLCPVryAfN3tT2+O3ocA1LFwsQz91wJrSG/nKoPBxEhRzPX4WfgBAoGBANkNblROd3AGKg009" +
            "NFxfHW727k1jec1NGLr5Q042syh/5MTYSHpS86hEb2VjbZ6GdWKnBsR1vYyllJkacCiNz3c55HM6Y7Lx15Vh+jIvxKKoWUS7WeTydXf" +
            "7+dKeSiI/J6uL0H26gVvE568g9CMBRyeMujs/f8e/AITS79lDYfX";

    @Value("${alipay.NOTIFY_URL}")
    String NOTIFY_URL;

    @Value("${alipay.RETURN_URL}")
    String RETURN_URL;

    public String CHARSET = "UTF-8";

    public String signType = "RSA2";

    // 支付宝公钥
    public String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmC8LJRngY0+3IPpICcIhGAGIeXn9+" +
            "XDYFkWlEwNjoTGRHcNPU86B0bJmeNwnoBiFHZlec0ahw2XxA+0eh5Pe8j+yGqRfo3Yyf1ytZ9CBCVZFYnmDvCloldnGQF9ljL2NZ/nml" +
            "JbKUrSZi8DI4c/JTE6auUB5CJXQwZmbedwDT/7mi1xIbrrmUijifjAwrgB0DcHVMlz0J5fuFxxKMq1TAiVH1rIwSGYbv9doYsmX6d1CEu" +
            "+OwwTKT2s9fSi91bGszC8D4GoKOC1GVi826nQgOUMkBu7cZ/08syePHAXFI9xDBFNfjPGMzLVk4VhZ0guSXkBWIFq2NlGDgFVyMyHU" +
            "5QIDAQAB";

    @Value("${alipay.SERVER_URL}")
    String serverUrl = "https://openapi.alipaydev.com/gateway.do";

    public String getAPP_ID() {
        return APP_ID;
    }

    public String getRSA_PRIVATE_KEY() {
        return RSA_PRIVATE_KEY;
    }

    public String getNOTIFY_URL() {
        return NOTIFY_URL;
    }

    public String getRETURN_URL() {
        return RETURN_URL;
    }

    public String getCHARSET() {
        return CHARSET;
    }

    public String getSignType() {
        return signType;
    }

    public String getALIPAY_PUBLIC_KEY() {
        return ALIPAY_PUBLIC_KEY;
    }

    public String getServerUrl() {
        return serverUrl;
    }
}
